<template>
  <div class="records pageOut">
    <el-tabs v-model="activeName" class="records_tab">
      <el-tab-pane label="设备列表" name="first">
        <EquipmentList v-if="activeName=='first'" />
      </el-tab-pane>
      <el-tab-pane label="保养记录" name="second">
        <MaintenanceRecords v-if="activeName=='second'" />
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
import EquipmentList from "../Maintenance/EquipmentList";
import MaintenanceRecords from "../Maintenance/MaintenanceRecords";

export default {
  data() {
    return {
      activeName: "first"
    };
  },
  components: {
    EquipmentList,
    MaintenanceRecords
  },
  methods: {}
};
</script>

<style lang="less">
.records {
  width: 95%;
  border: 1px solid #edeff4;
  background: #fff;
  .el-tabs__nav-scroll {
    overflow: hidden;
    display: flex;
    justify-content: center;
    justify-items: center;
    padding: 30px;
  }
  .el-tabs__item {
    font-size: 18px;
    font-family: "Microsoft YaHei";
  }
}
</style>